<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    protected function _initDb() {
        $option = $this->getOption('resources');
        $option = $option['db'];
        $db = Zend_Db::factory($option['adapter'], $option['params']);
        Zend_Registry::set('cnn', $db);
        Zend_Registry::set('dbname', $option['params']['dbname']);
        Zend_Registry::set('prefix', $option['prefix']);
        Zend_Db_Table::setDefaultAdapter($db);
    }

}

